import Vue from 'vue'

import VueRouter from 'vue-router'

Vue.use(VueRouter)

import China from '../view/index'
import Show from '../view/Show'

const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/china'
    },

    {
      path: '/china',
      component: China
    },
    {
      path: '/show',
      component: Show
    }
  ]
})

export default router
